/*
 * Main program
 * @author hoang.pt
 * @version $Id: PlayerTest.java 12 2010-08-23 09:00:40Z phantichhoang $
 */

package review.jbe.problem1;

import java.util.Scanner;

/**
 *
 * @author hoang.pt
 */
public class PlayerTest {
    /**
     * Creates a new instance of EmployeeTest.
     */
    public PlayerTest() {
    }

    /**
     * This is the entry point of the application.
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        //Scan from computer
        Scanner input = new Scanner(System.in);
        
        System.out.println("Enter name of player:");
        String name = input.next();

        System.out.println("Income of " +name+ " is:");
        double income = input.nextDouble();

        //init player income
        PlayerIncome p = new PlayerIncome(name, income);
        p.displayDetail();

    }
}
